package com.bestow.flowable.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bestow.common.annotation.Excel;
import com.bestow.common.core.domain.BaseEntity;

/**
 * 候选人审批规则对象 wfl_approve_candidate_rule
 * 
 * @author liliu
 * @date 2022-09-07
 */
public class WflApproveCandidateRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long candidateRuleId;

    /** 选人规则的唯一标示 */
    @Excel(name = "选人规则的唯一标示")
    private String code;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** activiti表达式 */
    @Excel(name = "activiti表达式")
    private String expression;

    /** 启用标志 */
    @Excel(name = "启用标志")
    private String enableFlag;

    public void setCandidateRuleId(Long candidateRuleId) 
    {
        this.candidateRuleId = candidateRuleId;
    }

    public Long getCandidateRuleId() 
    {
        return candidateRuleId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setExpression(String expression) 
    {
        this.expression = expression;
    }

    public String getExpression() 
    {
        return expression;
    }
    public void setEnableFlag(String enableFlag) 
    {
        this.enableFlag = enableFlag;
    }

    public String getEnableFlag() 
    {
        return enableFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("candidateRuleId", getCandidateRuleId())
            .append("code", getCode())
            .append("description", getDescription())
            .append("expression", getExpression())
            .append("enableFlag", getEnableFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
